class DefaultController < ApplicationController

  # home page
  def index
    @pages = Page.top_rated_pages
    @tags = Page.top_tags

    respond_to do |format|
      format.html # index.rhtml
      format.xml  { render :xml => @annorations.to_xml }
    end
  end
  
  def bookmarklet
    @page_title = "Get the Annorate Bookmarklet"
  end
  
  def widget
      @page_title = "Customize your Annorate Widget"
      @page = Page.find(29)
      @annorations = @page.annorations.find(:all, :order => "rating DESC")
  end
  
end
